import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/special_list/ticket_receipt_valid_date_entity.dart';

TicketReceiptValidDateEntity $TicketReceiptValidDateEntityFromJson(Map<String, dynamic> json) {
  final TicketReceiptValidDateEntity ticketReceiptValidDateEntity = TicketReceiptValidDateEntity();
  final int? gasDetectionValidDate = jsonConvert.convert<int>(json['gasDetectionValidDate']);
  if (gasDetectionValidDate != null) {
    ticketReceiptValidDateEntity.gasDetectionValidDate = gasDetectionValidDate;
  }
  final int? ticketReceiptValidDate = jsonConvert.convert<int>(json['ticketReceiptValidDate']);
  if (ticketReceiptValidDate != null) {
    ticketReceiptValidDateEntity.ticketReceiptValidDate = ticketReceiptValidDate;
  }
  return ticketReceiptValidDateEntity;
}

Map<String, dynamic> $TicketReceiptValidDateEntityToJson(TicketReceiptValidDateEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['gasDetectionValidDate'] = entity.gasDetectionValidDate;
  data['ticketReceiptValidDate'] = entity.ticketReceiptValidDate;
  return data;
}

extension TicketReceiptValidDateEntityExtension on TicketReceiptValidDateEntity {
  TicketReceiptValidDateEntity copyWith({
    int? gasDetectionValidDate,
    int? ticketReceiptValidDate,
  }) {
    return TicketReceiptValidDateEntity()
      ..gasDetectionValidDate = gasDetectionValidDate ?? this.gasDetectionValidDate
      ..ticketReceiptValidDate = ticketReceiptValidDate ?? this.ticketReceiptValidDate;
  }
}
